package com.fashopcosmos.preferencias.beans;

import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.Serializable;

import org.apache.hadoop.io.Writable;

public class PreferenceCustomerBean implements Serializable, Writable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -9101691820426206622L;
	
	private int idLocal;
	private int edad;
	private String sexo;
	private String producto;
	
	
	public int getIdLocal() {
		return idLocal;
	}
	public void setIdLocal(int idLocal) {
		this.idLocal = idLocal;
	}
	public int getEdad() {
		return edad;
	}
	public void setEdad(int edad) {
		this.edad = edad;
	}
	public String getSexo() {
		return sexo;
	}
	public void setSexo(String sexo) {
		this.sexo = sexo;
	}
	public String getProducto() {
		return producto;
	}
	public void setProducto(String producto) {
		this.producto = producto;
	}
	@Override
	public void readFields(DataInput in) throws IOException {
		idLocal		=	in.readInt();
		edad		=	in.readInt();
		sexo		=	in.readUTF();
		producto	=	in.readUTF();		
	}
	@Override
	public void write(DataOutput out) throws IOException {
		out.writeInt(idLocal);
		out.writeInt(edad);
		out.writeUTF(sexo);
		out.writeUTF(producto);		
	}
		
	public static PreferenceCustomerBean read(DataInput in)
	throws IOException{
		PreferenceCustomerBean p = new PreferenceCustomerBean();
		p.readFields(in);
		return null;
	}
	

}
